package com.dongdongshop.feignservice;


import com.dongdongshop.data.DataResult;
import com.dongdongshop.pojo.item.TbItem;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "SPRINGCLOUD-ITEM-SERVICE")
public interface ItemFeignService {

    @GetMapping("/item/{itemId}")
    DataResult<TbItem> findItemById(@PathVariable("itemId") Long itemId);
}
